Skip to content

Phase C: add CTBase.Data submodule (moved from CTFlows)#464

Merged
ocots merged 8 commits into
mainfrom
move/ctflows-to-ctbase-phase-c
Jun 25, 2026
Merged

Phase C: add CTBase.Data submodule (moved from CTFlows)#464
ocots merged 8 commits into
mainfrom
move/ctflows-to-ctbase-phase-c

Conversation

@ocots

@ocots ocots commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Moves Data module (VectorField, Hamiltonian, HamiltonianVectorField and their abstract supertypes) from CTFlows into CTBase so it can be shared across the ecosystem
  • Adds Data/default.jl with the three construction defaults (__is_autonomous, __is_variable, __is_inplace) — CTBase.Data is now fully self-contained (depends only on CTBase.Traits and CTBase.Exceptions)
  • Registers CTBase.Data in CTBase.jl after Traits
  • Adds data test suite (test/suite/data/, 7 files) and documentation (docs/src/guide/data.md, API reference entries)
  • Renames TestOptionsTestData in the test runner and all test files
  • Bumps version to 0.23.0-beta

Depends on: #461 (phase B, merged).
Part of the CTFlows → CTBase move project (phase C).

Test plan

  • Full CTBase suite green
  • test/suite/data/ all pass
  • Aqua (no stale deps)
  • CTFlows phase-C PR green against this release

🤖 Generated with Claude Code

ocots and others added 5 commits June 25, 2026 00:24
Moves the Data module (VectorField, Hamiltonian, HamiltonianVectorField and
their abstract supertypes) from CTFlows into CTBase so it can be shared
across the ecosystem. The three construction defaults (__is_autonomous,
__is_variable, __is_inplace) are also moved here (Data/default.jl) so
CTBase.Data is fully self-contained (depends only on CTBase.Traits and
CTBase.Exceptions).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ocots and others added 3 commits June 25, 2026 09:35
Core → Exceptions → Traits → Data → Descriptions → DevTools → Unicode
follows the dependency order rather than a loose alphabetical sort.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace the incorrect julia snippet with a working @example data block
that shows the correct out-of-place return values (dx, dp) and
(dx, dp, dpv) with variable_costate=true, and the in-place dpv buffer
argument that was missing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Exceptions → Traits → Data → Descriptions matches the dependency order
established in index.md and getting-started.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ocots
ocots merged commit 52ed92f into main Jun 25, 2026
4 checks passed
@ocots
ocots deleted the move/ctflows-to-ctbase-phase-c branch June 25, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant